.class public Lcom/melesta/obb/ObbDownloaderActivity;
.super Landroid/app/Activity;
.source "ObbDownloaderActivity.java"

# interfaces
.implements Lcom/google/android/vending/expansion/downloader/IDownloaderClient;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;
    }
.end annotation


# static fields
.field private static final LOG_TAG:Ljava/lang/String; = "LVLDownloader"

.field private static final SMOOTHING_FACTOR:F = 0.005f

.field private static xAPKS:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field private mAverageSpeed:Landroid/widget/TextView;

.field private mCancelValidation:Z

.field private mCellMessage:Landroid/view/View;

.field private mDashboard:Landroid/view/View;

.field private mDownloaderClientStub:Lcom/google/android/vending/expansion/downloader/IStub;

.field private mPB:Landroid/widget/ProgressBar;

.field private mPauseButton:Landroid/widget/Button;

.field private mProgressFraction:Landroid/widget/TextView;

.field private mProgressPercent:Landroid/widget/TextView;

.field private mRemoteService:Lcom/google/android/vending/expansion/downloader/IDownloaderService;

.field private mState:I

.field private mStatePaused:Z

.field private mStatusText:Landroid/widget/TextView;

.field private mTimeRemaining:Landroid/widget/TextView;

.field private mWiFiSettingsButton:Landroid/widget/Button;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 126
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    sput-object v0, Lcom/melesta/obb/ObbDownloaderActivity;->xAPKS:Ljava/util/ArrayList;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 64
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 106
    return-void
.end method

.method static synthetic access$000(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/view/View;
    .locals 1
    .parameter "x0"

    .prologue
    .line 64
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mDashboard:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$100(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/view/View;
    .locals 1
    .parameter "x0"

    .prologue
    .line 64
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mCellMessage:Landroid/view/View;

    return-object v0
.end method

.method static synthetic access$200(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/widget/TextView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 64
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mStatusText:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$300(Lcom/melesta/obb/ObbDownloaderActivity;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 64
    iget-boolean v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mCancelValidation:Z

    return v0
.end method

.method static synthetic access$302(Lcom/melesta/obb/ObbDownloaderActivity;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 64
    iput-boolean p1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mCancelValidation:Z

    return p1
.end method

.method static synthetic access$400(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/widget/Button;
    .locals 1
    .parameter "x0"

    .prologue
    .line 64
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mPauseButton:Landroid/widget/Button;

    return-object v0
.end method

.method static synthetic access$500()Ljava/util/ArrayList;
    .locals 1

    .prologue
    .line 64
    sget-object v0, Lcom/melesta/obb/ObbDownloaderActivity;->xAPKS:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$600(Lcom/melesta/obb/ObbDownloaderActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 64
    invoke-direct {p0}, Lcom/melesta/obb/ObbDownloaderActivity;->startEngineActivity()V

    return-void
.end method

.method static synthetic access$700(Lcom/melesta/obb/ObbDownloaderActivity;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 64
    iget-boolean v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mStatePaused:Z

    return v0
.end method

.method static synthetic access$800(Lcom/melesta/obb/ObbDownloaderActivity;)Lcom/google/android/vending/expansion/downloader/IDownloaderService;
    .locals 1
    .parameter "x0"

    .prologue
    .line 64
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mRemoteService:Lcom/google/android/vending/expansion/downloader/IDownloaderService;

    return-object v0
.end method

.method static synthetic access$900(Lcom/melesta/obb/ObbDownloaderActivity;Z)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 64
    invoke-direct {p0, p1}, Lcom/melesta/obb/ObbDownloaderActivity;->setButtonPausedState(Z)V

    return-void
.end method

.method private expansionFilesValidated()Z
    .locals 7

    .prologue
    const/4 v4, 0x0

    .line 536
    sget-object v5, Lcom/melesta/obb/ObbDownloaderActivity;->xAPKS:Ljava/util/ArrayList;

    invoke-virtual {v5}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    .local v2, i$:Ljava/util/Iterator;
    :cond_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_2

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;

    .line 537
    .local v3, xf:Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;
    iget-boolean v5, v3, Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;->mIsMain:Z

    iget v6, v3, Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;->mFileVersion:I

    invoke-static {p0, v5, v6}, Lcom/google/android/vending/expansion/downloader/Helpers;->getExpansionAPKFileName(Landroid/content/Context;ZI)Ljava/lang/String;

    move-result-object v0

    .line 538
    .local v0, fileName:Ljava/lang/String;
    iget-wide v5, v3, Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;->mFileSize:J

    invoke-static {p0, v0, v5, v6, v4}, Lcom/google/android/vending/expansion/downloader/Helpers;->doesFileExist(Landroid/content/Context;Ljava/lang/String;JZ)Z

    move-result v5

    if-nez v5, :cond_1

    .line 545
    .end local v0           #fileName:Ljava/lang/String;
    .end local v3           #xf:Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;
    :goto_0
    return v4

    .line 541
    .restart local v0       #fileName:Ljava/lang/String;
    .restart local v3       #xf:Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;
    :cond_1
    new-instance v1, Ljava/io/File;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, ".verified"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {p0, v5}, Lcom/google/android/vending/expansion/downloader/Helpers;->generateSaveFileName(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v1, v5}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 542
    .local v1, fileVerified:Ljava/io/File;
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v5

    if-nez v5, :cond_0

    goto :goto_0

    .line 545
    .end local v0           #fileName:Ljava/lang/String;
    .end local v1           #fileVerified:Ljava/io/File;
    .end local v3           #xf:Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;
    :cond_2
    const/4 v4, 0x1

    goto :goto_0
.end method

.method private initializeDownloadUI()V
    .locals 3

    .prologue
    .line 330
    const-class v1, Lcom/melesta/obb/ObbDownloaderService;

    invoke-static {p0, v1}, Lcom/google/android/vending/expansion/downloader/DownloaderClientMarshaller;->CreateStub(Lcom/google/android/vending/expansion/downloader/IDownloaderClient;Ljava/lang/Class;)Lcom/google/android/vending/expansion/downloader/IStub;

    move-result-object v1

    iput-object v1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mDownloaderClientStub:Lcom/google/android/vending/expansion/downloader/IStub;

    .line 331
    sget v1, Lcom/melesta/engine/R$layout;->main:I

    invoke-virtual {p0, v1}, Lcom/melesta/obb/ObbDownloaderActivity;->setContentView(I)V

    .line 333
    sget v1, Lcom/melesta/engine/R$id;->progressBar:I

    invoke-virtual {p0, v1}, Lcom/melesta/obb/ObbDownloaderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ProgressBar;

    iput-object v1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mPB:Landroid/widget/ProgressBar;

    .line 334
    sget v1, Lcom/melesta/engine/R$id;->statusText:I

    invoke-virtual {p0, v1}, Lcom/melesta/obb/ObbDownloaderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mStatusText:Landroid/widget/TextView;

    .line 335
    sget v1, Lcom/melesta/engine/R$id;->progressAsFraction:I

    invoke-virtual {p0, v1}, Lcom/melesta/obb/ObbDownloaderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mProgressFraction:Landroid/widget/TextView;

    .line 336
    sget v1, Lcom/melesta/engine/R$id;->progressAsPercentage:I

    invoke-virtual {p0, v1}, Lcom/melesta/obb/ObbDownloaderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mProgressPercent:Landroid/widget/TextView;

    .line 337
    sget v1, Lcom/melesta/engine/R$id;->progressAverageSpeed:I

    invoke-virtual {p0, v1}, Lcom/melesta/obb/ObbDownloaderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mAverageSpeed:Landroid/widget/TextView;

    .line 338
    sget v1, Lcom/melesta/engine/R$id;->progressTimeRemaining:I

    invoke-virtual {p0, v1}, Lcom/melesta/obb/ObbDownloaderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mTimeRemaining:Landroid/widget/TextView;

    .line 339
    sget v1, Lcom/melesta/engine/R$id;->downloaderDashboard:I

    invoke-virtual {p0, v1}, Lcom/melesta/obb/ObbDownloaderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    iput-object v1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mDashboard:Landroid/view/View;

    .line 340
    sget v1, Lcom/melesta/engine/R$id;->approveCellular:I

    invoke-virtual {p0, v1}, Lcom/melesta/obb/ObbDownloaderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    iput-object v1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mCellMessage:Landroid/view/View;

    .line 341
    sget v1, Lcom/melesta/engine/R$id;->pauseButton:I

    invoke-virtual {p0, v1}, Lcom/melesta/obb/ObbDownloaderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mPauseButton:Landroid/widget/Button;

    .line 342
    sget v1, Lcom/melesta/engine/R$id;->wifiSettingsButton:I

    invoke-virtual {p0, v1}, Lcom/melesta/obb/ObbDownloaderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mWiFiSettingsButton:Landroid/widget/Button;

    .line 344
    iget-object v1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mPauseButton:Landroid/widget/Button;

    new-instance v2, Lcom/melesta/obb/ObbDownloaderActivity$2;

    invoke-direct {v2, p0}, Lcom/melesta/obb/ObbDownloaderActivity$2;-><init>(Lcom/melesta/obb/ObbDownloaderActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 356
    iget-object v1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mWiFiSettingsButton:Landroid/widget/Button;

    new-instance v2, Lcom/melesta/obb/ObbDownloaderActivity$3;

    invoke-direct {v2, p0}, Lcom/melesta/obb/ObbDownloaderActivity$3;-><init>(Lcom/melesta/obb/ObbDownloaderActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 363
    sget v1, Lcom/melesta/engine/R$id;->resumeOverCellular:I

    invoke-virtual {p0, v1}, Lcom/melesta/obb/ObbDownloaderActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    .line 364
    .local v0, resumeOnCell:Landroid/widget/Button;
    new-instance v1, Lcom/melesta/obb/ObbDownloaderActivity$4;

    invoke-direct {v1, p0}, Lcom/melesta/obb/ObbDownloaderActivity$4;-><init>(Lcom/melesta/obb/ObbDownloaderActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 377
    return-void
.end method

.method private setButtonPausedState(Z)V
    .locals 2
    .parameter "paused"

    .prologue
    .line 95
    iput-boolean p1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mStatePaused:Z

    .line 96
    if-eqz p1, :cond_0

    sget v0, Lcom/melesta/engine/R$string;->text_button_resume:I

    .line 97
    .local v0, stringResourceID:I
    :goto_0
    iget-object v1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mPauseButton:Landroid/widget/Button;

    invoke-virtual {v1, v0}, Landroid/widget/Button;->setText(I)V

    .line 98
    return-void

    .line 96
    .end local v0           #stringResourceID:I
    :cond_0
    sget v0, Lcom/melesta/engine/R$string;->text_button_pause:I

    goto :goto_0
.end method

.method private setState(I)V
    .locals 2
    .parameter "newState"

    .prologue
    .line 88
    iget v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mState:I

    if-eq v0, p1, :cond_0

    .line 89
    iput p1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mState:I

    .line 90
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mStatusText:Landroid/widget/TextView;

    invoke-static {p1}, Lcom/google/android/vending/expansion/downloader/Helpers;->getDownloaderStringResourceIDFromState(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 92
    :cond_0
    return-void
.end method

.method public static show(Landroid/app/Activity;)V
    .locals 2
    .parameter "instance"

    .prologue
    .line 691
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/melesta/obb/ObbDownloaderActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 692
    .local v0, i:Landroid/content/Intent;
    invoke-virtual {p0, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    .line 693
    return-void
.end method

.method private startEngineActivity()V
    .locals 2

    .prologue
    .line 530
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/melesta/engine/EngineActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 531
    .local v0, i:Landroid/content/Intent;
    const/high16 v1, 0x2020

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 532
    invoke-virtual {p0, v0}, Lcom/melesta/obb/ObbDownloaderActivity;->startActivity(Landroid/content/Intent;)V

    .line 533
    return-void
.end method


# virtual methods
.method expansionFilesDelivered()Z
    .locals 7

    .prologue
    const/4 v3, 0x0

    .line 140
    sget-object v4, Lcom/melesta/obb/ObbDownloaderActivity;->xAPKS:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .local v1, i$:Ljava/util/Iterator;
    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_1

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;

    .line 141
    .local v2, xf:Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;
    iget-boolean v4, v2, Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;->mIsMain:Z

    iget v5, v2, Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;->mFileVersion:I

    invoke-static {p0, v4, v5}, Lcom/google/android/vending/expansion/downloader/Helpers;->getExpansionAPKFileName(Landroid/content/Context;ZI)Ljava/lang/String;

    move-result-object v0

    .line 142
    .local v0, fileName:Ljava/lang/String;
    iget-wide v4, v2, Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;->mFileSize:J

    invoke-static {p0, v0, v4, v5, v3}, Lcom/google/android/vending/expansion/downloader/Helpers;->doesFileExist(Landroid/content/Context;Ljava/lang/String;JZ)Z

    move-result v4

    if-nez v4, :cond_0

    .line 143
    const-string v4, "engine"

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "Need to download "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, " | "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-static {p0, v0}, Lcom/google/android/vending/expansion/downloader/Helpers;->generateSaveFileName(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 147
    .end local v0           #fileName:Ljava/lang/String;
    .end local v2           #xf:Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;
    :goto_0
    return v3

    :cond_1
    const/4 v3, 0x1

    goto :goto_0
.end method

.method public getVersion()I
    .locals 4

    .prologue
    .line 696
    const/4 v0, 0x0

    .line 698
    .local v0, v:I
    :try_start_0
    invoke-virtual {p0}, Lcom/melesta/obb/ObbDownloaderActivity;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    invoke-virtual {p0}, Lcom/melesta/obb/ObbDownloaderActivity;->getPackageName()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v1

    iget v0, v1, Landroid/content/pm/PackageInfo;->versionCode:I
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 702
    :goto_0
    return v0

    .line 699
    :catch_0
    move-exception v1

    goto :goto_0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 22
    .parameter "savedInstanceState"

    .prologue
    .line 386
    invoke-super/range {p0 .. p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 388
    const-string v19, "engine"

    invoke-virtual/range {p0 .. p0}, Lcom/melesta/obb/ObbDownloaderActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Landroid/content/res/Configuration;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 390
    invoke-virtual/range {p0 .. p0}, Lcom/melesta/obb/ObbDownloaderActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v6

    .line 392
    .local v6, dm:Landroid/util/DisplayMetrics;
    iget v0, v6, Landroid/util/DisplayMetrics;->densityDpi:I

    move/from16 v19, v0

    const/16 v20, 0xf0

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_1

    .line 393
    const-string v19, "engine"

    const-string v20, "DENSITY_HIGH"

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 404
    :goto_0
    invoke-virtual/range {p0 .. p0}, Lcom/melesta/obb/ObbDownloaderActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v19

    move-object/from16 v0, v19

    iget v0, v0, Landroid/content/res/Configuration;->screenLayout:I

    move/from16 v19, v0

    and-int/lit8 v19, v19, 0xf

    const/16 v20, 0x3

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_5

    .line 405
    const-string v19, "engine"

    const-string v20, "Large screen"

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 417
    :goto_1
    :try_start_0
    invoke-virtual/range {p0 .. p0}, Lcom/melesta/obb/ObbDownloaderActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v19

    sget v20, Lcom/melesta/engine/R$xml;->obb:I

    invoke-virtual/range {v19 .. v20}, Landroid/content/res/Resources;->getXml(I)Landroid/content/res/XmlResourceParser;

    move-result-object v12

    .line 419
    .local v12, p:Landroid/content/res/XmlResourceParser;
    sget-object v19, Lcom/melesta/obb/ObbDownloaderActivity;->xAPKS:Ljava/util/ArrayList;

    invoke-virtual/range {v19 .. v19}, Ljava/util/ArrayList;->clear()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    .line 422
    :try_start_1
    invoke-interface {v12}, Landroid/content/res/XmlResourceParser;->next()I

    .line 423
    invoke-interface {v12}, Landroid/content/res/XmlResourceParser;->next()I

    .line 424
    invoke-interface {v12}, Landroid/content/res/XmlResourceParser;->next()I

    move-result v8

    .local v8, et:I
    :goto_2
    const/16 v19, 0x1

    move/from16 v0, v19

    if-eq v8, v0, :cond_9

    .line 425
    const/16 v19, 0x2

    move/from16 v0, v19

    if-ne v8, v0, :cond_0

    .line 426
    invoke-interface {v12}, Landroid/content/res/XmlResourceParser;->getName()Ljava/lang/String;

    move-result-object v14

    .line 427
    .local v14, s:Ljava/lang/String;
    const/16 v19, 0x0

    const-string v20, "version"

    const/16 v21, -0x1

    move-object/from16 v0, v19

    move-object/from16 v1, v20

    move/from16 v2, v21

    invoke-interface {v12, v0, v1, v2}, Landroid/content/res/XmlResourceParser;->getAttributeIntValue(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v17

    .line 428
    .local v17, version:I
    const/16 v19, 0x0

    const-string v20, "size"

    const/16 v21, -0x1

    move-object/from16 v0, v19

    move-object/from16 v1, v20

    move/from16 v2, v21

    invoke-interface {v12, v0, v1, v2}, Landroid/content/res/XmlResourceParser;->getAttributeIntValue(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v15

    .line 429
    .local v15, size:I
    new-instance v18, Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;

    const-string v19, "main"

    move-object/from16 v0, v19

    invoke-virtual {v14, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v19

    int-to-long v0, v15

    move-wide/from16 v20, v0

    move-object/from16 v0, v18

    move/from16 v1, v19

    move/from16 v2, v17

    move-wide/from16 v3, v20

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;-><init>(ZIJ)V

    .line 430
    .local v18, xf:Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;
    sget-object v19, Lcom/melesta/obb/ObbDownloaderActivity;->xAPKS:Ljava/util/ArrayList;

    move-object/from16 v0, v19

    move-object/from16 v1, v18

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 424
    .end local v14           #s:Ljava/lang/String;
    .end local v15           #size:I
    .end local v17           #version:I
    .end local v18           #xf:Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;
    :cond_0
    invoke-interface {v12}, Landroid/content/res/XmlResourceParser;->next()I
    :try_end_1
    .catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2

    move-result v8

    goto :goto_2

    .line 394
    .end local v8           #et:I
    .end local v12           #p:Landroid/content/res/XmlResourceParser;
    :cond_1
    iget v0, v6, Landroid/util/DisplayMetrics;->densityDpi:I

    move/from16 v19, v0

    const/16 v20, 0x78

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_2

    .line 395
    const-string v19, "engine"

    const-string v20, "DENSITY_LOW"

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_0

    .line 396
    :cond_2
    iget v0, v6, Landroid/util/DisplayMetrics;->densityDpi:I

    move/from16 v19, v0

    const/16 v20, 0xa0

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_3

    .line 397
    const-string v19, "engine"

    const-string v20, "DENSITY_MEDIUM"

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_0

    .line 398
    :cond_3
    iget v0, v6, Landroid/util/DisplayMetrics;->densityDpi:I

    move/from16 v19, v0

    const/16 v20, 0x140

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_4

    .line 399
    const-string v19, "engine"

    const-string v20, "DENSITY_XHIGH"

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_0

    .line 401
    :cond_4
    const-string v19, "engine"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "DENSITY_"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    iget v0, v6, Landroid/util/DisplayMetrics;->densityDpi:I

    move/from16 v21, v0

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_0

    .line 406
    :cond_5
    invoke-virtual/range {p0 .. p0}, Lcom/melesta/obb/ObbDownloaderActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v19

    move-object/from16 v0, v19

    iget v0, v0, Landroid/content/res/Configuration;->screenLayout:I

    move/from16 v19, v0

    and-int/lit8 v19, v19, 0xf

    const/16 v20, 0x4

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_6

    .line 407
    const-string v19, "engine"

    const-string v20, "xLarge screen"

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_1

    .line 408
    :cond_6
    invoke-virtual/range {p0 .. p0}, Lcom/melesta/obb/ObbDownloaderActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v19

    move-object/from16 v0, v19

    iget v0, v0, Landroid/content/res/Configuration;->screenLayout:I

    move/from16 v19, v0

    and-int/lit8 v19, v19, 0xf

    const/16 v20, 0x2

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_7

    .line 409
    const-string v19, "engine"

    const-string v20, "Normal screen"

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_1

    .line 410
    :cond_7
    invoke-virtual/range {p0 .. p0}, Lcom/melesta/obb/ObbDownloaderActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v19

    invoke-virtual/range {v19 .. v19}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v19

    move-object/from16 v0, v19

    iget v0, v0, Landroid/content/res/Configuration;->screenLayout:I

    move/from16 v19, v0

    and-int/lit8 v19, v19, 0xf

    const/16 v20, 0x1

    move/from16 v0, v19

    move/from16 v1, v20

    if-ne v0, v1, :cond_8

    .line 411
    const-string v19, "engine"

    const-string v20, "Small screen"

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_1

    .line 413
    :cond_8
    const-string v19, "engine"

    const-string v20, "Unknown screen"

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_1

    .line 433
    .restart local v12       #p:Landroid/content/res/XmlResourceParser;
    :catch_0
    move-exception v7

    .line 434
    .local v7, e:Lorg/xmlpull/v1/XmlPullParserException;
    :try_start_2
    invoke-virtual {v7}, Lorg/xmlpull/v1/XmlPullParserException;->printStackTrace()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    .line 440
    .end local v7           #e:Lorg/xmlpull/v1/XmlPullParserException;
    :cond_9
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "BOARD:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->BOARD:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 441
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "BRAND:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->BRAND:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 442
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "CPU_ABI:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->CPU_ABI:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 443
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "CPU_ABI2:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->CPU_ABI2:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 444
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "DEVICE:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->DEVICE:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 445
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "DISPLAY:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->DISPLAY:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 446
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "FINGERPRINT:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->FINGERPRINT:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 447
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "HARDWARE:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->HARDWARE:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 448
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "HOST:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->HOST:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 449
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "ID:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->ID:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 450
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "MANUFACTURER:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 451
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "MODEL:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->MODEL:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 452
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "PRODUCT:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->PRODUCT:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 453
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "RADIO:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->RADIO:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 454
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "SERIAL:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->SERIAL:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 455
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "TAGS:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->TAGS:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 456
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "TYPE:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->TYPE:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 457
    const-string v19, "ToyDefense"

    const-string v20, "UNKNOWN:unknown"

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 458
    const-string v19, "ToyDefense"

    new-instance v20, Ljava/lang/StringBuilder;

    invoke-direct/range {v20 .. v20}, Ljava/lang/StringBuilder;-><init>()V

    const-string v21, "USER:"

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    sget-object v21, Landroid/os/Build;->USER:Ljava/lang/String;

    invoke-virtual/range {v20 .. v21}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v20

    invoke-virtual/range {v20 .. v20}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v20

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 465
    invoke-virtual/range {p0 .. p0}, Lcom/melesta/obb/ObbDownloaderActivity;->expansionFilesDelivered()Z

    move-result v19

    if-nez v19, :cond_c

    .line 470
    :try_start_3
    invoke-direct/range {p0 .. p0}, Lcom/melesta/obb/ObbDownloaderActivity;->initializeDownloadUI()V

    .line 472
    invoke-virtual/range {p0 .. p0}, Lcom/melesta/obb/ObbDownloaderActivity;->getIntent()Landroid/content/Intent;

    move-result-object v11

    .line 473
    .local v11, launchIntent:Landroid/content/Intent;
    new-instance v10, Landroid/content/Intent;

    invoke-virtual/range {p0 .. p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v19

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-direct {v10, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 475
    .local v10, intentToLaunchThisActivityFromNotification:Landroid/content/Intent;
    const/high16 v19, 0x1400

    move/from16 v0, v19

    invoke-virtual {v10, v0}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 477
    invoke-virtual {v11}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v19

    move-object/from16 v0, v19

    invoke-virtual {v10, v0}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 479
    invoke-virtual {v11}, Landroid/content/Intent;->getCategories()Ljava/util/Set;

    move-result-object v19

    if-eqz v19, :cond_b

    .line 480
    invoke-virtual {v11}, Landroid/content/Intent;->getCategories()Ljava/util/Set;

    move-result-object v19

    invoke-interface/range {v19 .. v19}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v9

    .local v9, i$:Ljava/util/Iterator;
    :goto_3
    invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z

    move-result v19

    if-eqz v19, :cond_b

    invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/String;

    .line 481
    .local v5, category:Ljava/lang/String;
    invoke-virtual {v10, v5}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;
    :try_end_3
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_3 .. :try_end_3} :catch_1

    goto :goto_3

    .line 497
    .end local v5           #category:Ljava/lang/String;
    .end local v9           #i$:Ljava/util/Iterator;
    .end local v10           #intentToLaunchThisActivityFromNotification:Landroid/content/Intent;
    .end local v11           #launchIntent:Landroid/content/Intent;
    :catch_1
    move-exception v7

    .line 498
    .local v7, e:Landroid/content/pm/PackageManager$NameNotFoundException;
    const-string v19, "LVLDownloader"

    const-string v20, "Cannot find own package! MAYDAY!"

    invoke-static/range {v19 .. v20}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 499
    invoke-virtual {v7}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V

    .line 527
    .end local v7           #e:Landroid/content/pm/PackageManager$NameNotFoundException;
    :cond_a
    :goto_4
    return-void

    .line 436
    .end local v12           #p:Landroid/content/res/XmlResourceParser;
    :catch_2
    move-exception v7

    .line 437
    .local v7, e:Ljava/lang/Exception;
    new-instance v19, Ljava/lang/RuntimeException;

    move-object/from16 v0, v19

    invoke-direct {v0, v7}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V

    throw v19

    .line 487
    .end local v7           #e:Ljava/lang/Exception;
    .restart local v10       #intentToLaunchThisActivityFromNotification:Landroid/content/Intent;
    .restart local v11       #launchIntent:Landroid/content/Intent;
    .restart local v12       #p:Landroid/content/res/XmlResourceParser;
    :cond_b
    const/16 v19, 0x0

    const/high16 v20, 0x800

    :try_start_4
    move-object/from16 v0, p0

    move/from16 v1, v19

    move/from16 v2, v20

    invoke-static {v0, v1, v10, v2}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v13

    .line 490
    .local v13, pendingIntent:Landroid/app/PendingIntent;
    const-class v19, Lcom/melesta/obb/ObbDownloaderService;

    move-object/from16 v0, p0

    move-object/from16 v1, v19

    invoke-static {v0, v13, v1}, Lcom/google/android/vending/expansion/downloader/DownloaderClientMarshaller;->startDownloadServiceIfRequired(Landroid/content/Context;Landroid/app/PendingIntent;Ljava/lang/Class;)I
    :try_end_4
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_4 .. :try_end_4} :catch_1

    move-result v16

    .line 493
    .local v16, startResult:I
    if-eqz v16, :cond_a

    goto :goto_4

    .line 505
    .end local v10           #intentToLaunchThisActivityFromNotification:Landroid/content/Intent;
    .end local v11           #launchIntent:Landroid/content/Intent;
    .end local v13           #pendingIntent:Landroid/app/PendingIntent;
    .end local v16           #startResult:I
    :cond_c
    invoke-virtual/range {p0 .. p0}, Lcom/melesta/obb/ObbDownloaderActivity;->finish()V

    .line 509
    invoke-direct/range {p0 .. p0}, Lcom/melesta/obb/ObbDownloaderActivity;->startEngineActivity()V

    goto :goto_4
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 686
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mCancelValidation:Z

    .line 687
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 688
    return-void
.end method

.method public onDownloadProgress(Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;)V
    .locals 9
    .parameter "progress"

    .prologue
    const-wide/16 v7, 0x64

    const/16 v6, 0x8

    const/4 v4, 0x1

    const/4 v5, 0x0

    .line 668
    iget-wide v0, p1, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;->mTimeRemaining:J

    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-gez v0, :cond_0

    .line 669
    iput-wide v7, p1, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;->mTimeRemaining:J

    .line 671
    :cond_0
    iget-wide v0, p1, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;->mOverallProgress:J

    iget-wide v2, p1, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;->mOverallTotal:J

    cmp-long v0, v0, v2

    if-lez v0, :cond_1

    .line 672
    iget-wide v0, p1, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;->mOverallTotal:J

    iput-wide v0, p1, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;->mOverallProgress:J

    .line 674
    :cond_1
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mAverageSpeed:Landroid/widget/TextView;

    sget v1, Lcom/melesta/engine/R$string;->kilobytes_per_second:I

    new-array v2, v4, [Ljava/lang/Object;

    iget v3, p1, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;->mCurrentSpeed:F

    invoke-static {v3}, Lcom/google/android/vending/expansion/downloader/Helpers;->getSpeedString(F)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v2, v5

    invoke-virtual {p0, v1, v2}, Lcom/melesta/obb/ObbDownloaderActivity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 675
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mTimeRemaining:Landroid/widget/TextView;

    sget v1, Lcom/melesta/engine/R$string;->time_remaining:I

    new-array v2, v4, [Ljava/lang/Object;

    iget-wide v3, p1, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;->mTimeRemaining:J

    invoke-static {v3, v4}, Lcom/google/android/vending/expansion/downloader/Helpers;->getTimeRemaining(J)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v2, v5

    invoke-virtual {p0, v1, v2}, Lcom/melesta/obb/ObbDownloaderActivity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 677
    iget-wide v0, p1, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;->mOverallTotal:J

    iput-wide v0, p1, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;->mOverallTotal:J

    .line 678
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mPB:Landroid/widget/ProgressBar;

    iget-wide v1, p1, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;->mOverallTotal:J

    shr-long/2addr v1, v6

    long-to-int v1, v1

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setMax(I)V

    .line 679
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mPB:Landroid/widget/ProgressBar;

    iget-wide v1, p1, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;->mOverallProgress:J

    shr-long/2addr v1, v6

    long-to-int v1, v1

    invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setProgress(I)V

    .line 680
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mProgressPercent:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-wide v2, p1, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;->mOverallProgress:J

    mul-long/2addr v2, v7

    iget-wide v4, p1, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;->mOverallTotal:J

    div-long/2addr v2, v4

    invoke-static {v2, v3}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "%"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 681
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mProgressFraction:Landroid/widget/TextView;

    iget-wide v1, p1, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;->mOverallProgress:J

    iget-wide v3, p1, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;->mOverallTotal:J

    invoke-static {v1, v2, v3, v4}, Lcom/google/android/vending/expansion/downloader/Helpers;->getDownloadProgressString(JJ)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 682
    return-void
.end method

.method public onDownloadStateChanged(I)V
    .locals 9
    .parameter "newState"

    .prologue
    const/16 v7, 0x8

    const/4 v6, 0x0

    .line 589
    invoke-direct {p0, p1}, Lcom/melesta/obb/ObbDownloaderActivity;->setState(I)V

    .line 590
    const/4 v5, 0x1

    .line 591
    .local v5, showDashboard:Z
    const/4 v4, 0x0

    .line 594
    .local v4, showCellMessage:Z
    packed-switch p1, :pswitch_data_0

    .line 645
    :pswitch_0
    const/4 v3, 0x1

    .line 646
    .local v3, paused:Z
    const/4 v1, 0x1

    .line 647
    .local v1, indeterminate:Z
    const/4 v5, 0x1

    .line 649
    :goto_0
    if-eqz v5, :cond_2

    move v2, v6

    .line 650
    .local v2, newDashboardVisibility:I
    :goto_1
    iget-object v8, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mDashboard:Landroid/view/View;

    invoke-virtual {v8}, Landroid/view/View;->getVisibility()I

    move-result v8

    if-eq v8, v2, :cond_0

    .line 651
    iget-object v8, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mDashboard:Landroid/view/View;

    invoke-virtual {v8, v2}, Landroid/view/View;->setVisibility(I)V

    .line 653
    :cond_0
    if-eqz v4, :cond_3

    move v0, v6

    .line 654
    .local v0, cellMessageVisibility:I
    :goto_2
    iget-object v6, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mCellMessage:Landroid/view/View;

    invoke-virtual {v6}, Landroid/view/View;->getVisibility()I

    move-result v6

    if-eq v6, v0, :cond_1

    .line 655
    iget-object v6, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mCellMessage:Landroid/view/View;

    invoke-virtual {v6, v0}, Landroid/view/View;->setVisibility(I)V

    .line 658
    :cond_1
    iget-object v6, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mPB:Landroid/widget/ProgressBar;

    invoke-virtual {v6, v1}, Landroid/widget/ProgressBar;->setIndeterminate(Z)V

    .line 659
    invoke-direct {p0, v3}, Lcom/melesta/obb/ObbDownloaderActivity;->setButtonPausedState(Z)V

    .line 660
    .end local v0           #cellMessageVisibility:I
    .end local v2           #newDashboardVisibility:I
    :goto_3
    return-void

    .line 598
    .end local v1           #indeterminate:Z
    .end local v3           #paused:Z
    :pswitch_1
    const/4 v3, 0x0

    .line 599
    .restart local v3       #paused:Z
    const/4 v1, 0x1

    .line 600
    .restart local v1       #indeterminate:Z
    goto :goto_0

    .line 603
    .end local v1           #indeterminate:Z
    .end local v3           #paused:Z
    :pswitch_2
    const/4 v5, 0x1

    .line 604
    const/4 v3, 0x0

    .line 605
    .restart local v3       #paused:Z
    const/4 v1, 0x1

    .line 606
    .restart local v1       #indeterminate:Z
    goto :goto_0

    .line 608
    .end local v1           #indeterminate:Z
    .end local v3           #paused:Z
    :pswitch_3
    const/4 v3, 0x0

    .line 609
    .restart local v3       #paused:Z
    const/4 v5, 0x1

    .line 610
    const/4 v1, 0x0

    .line 611
    .restart local v1       #indeterminate:Z
    goto :goto_0

    .line 617
    .end local v1           #indeterminate:Z
    .end local v3           #paused:Z
    :pswitch_4
    const/4 v3, 0x1

    .line 618
    .restart local v3       #paused:Z
    const/4 v5, 0x0

    .line 619
    const/4 v1, 0x0

    .line 620
    .restart local v1       #indeterminate:Z
    goto :goto_0

    .line 623
    .end local v1           #indeterminate:Z
    .end local v3           #paused:Z
    :pswitch_5
    const/4 v5, 0x0

    .line 624
    const/4 v3, 0x1

    .line 625
    .restart local v3       #paused:Z
    const/4 v1, 0x0

    .line 626
    .restart local v1       #indeterminate:Z
    const/4 v4, 0x1

    .line 627
    goto :goto_0

    .line 630
    .end local v1           #indeterminate:Z
    .end local v3           #paused:Z
    :pswitch_6
    const/4 v3, 0x1

    .line 631
    .restart local v3       #paused:Z
    const/4 v1, 0x0

    .line 632
    .restart local v1       #indeterminate:Z
    goto :goto_0

    .line 635
    .end local v1           #indeterminate:Z
    .end local v3           #paused:Z
    :pswitch_7
    const/4 v3, 0x1

    .line 636
    .restart local v3       #paused:Z
    const/4 v1, 0x0

    .line 637
    .restart local v1       #indeterminate:Z
    goto :goto_0

    .line 639
    .end local v1           #indeterminate:Z
    .end local v3           #paused:Z
    :pswitch_8
    const/4 v5, 0x0

    .line 640
    const/4 v3, 0x0

    .line 641
    .restart local v3       #paused:Z
    const/4 v1, 0x0

    .line 642
    .restart local v1       #indeterminate:Z
    invoke-virtual {p0}, Lcom/melesta/obb/ObbDownloaderActivity;->validateXAPKZipFiles()V

    goto :goto_3

    :cond_2
    move v2, v7

    .line 649
    goto :goto_1

    .restart local v2       #newDashboardVisibility:I
    :cond_3
    move v0, v7

    .line 653
    goto :goto_2

    .line 594
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_2
        :pswitch_2
        :pswitch_3
        :pswitch_8
        :pswitch_0
        :pswitch_6
        :pswitch_5
        :pswitch_5
        :pswitch_0
        :pswitch_0
        :pswitch_7
        :pswitch_0
        :pswitch_7
        :pswitch_4
        :pswitch_4
        :pswitch_0
        :pswitch_4
        :pswitch_4
    .end packed-switch
.end method

.method public onServiceConnected(Landroid/os/Messenger;)V
    .locals 2
    .parameter "m"

    .prologue
    .line 578
    invoke-static {p1}, Lcom/google/android/vending/expansion/downloader/DownloaderServiceMarshaller;->CreateProxy(Landroid/os/Messenger;)Lcom/google/android/vending/expansion/downloader/IDownloaderService;

    move-result-object v0

    iput-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mRemoteService:Lcom/google/android/vending/expansion/downloader/IDownloaderService;

    .line 579
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mRemoteService:Lcom/google/android/vending/expansion/downloader/IDownloaderService;

    iget-object v1, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mDownloaderClientStub:Lcom/google/android/vending/expansion/downloader/IStub;

    invoke-interface {v1}, Lcom/google/android/vending/expansion/downloader/IStub;->getMessenger()Landroid/os/Messenger;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/google/android/vending/expansion/downloader/IDownloaderService;->onClientUpdated(Landroid/os/Messenger;)V

    .line 580
    return-void
.end method

.method protected onStart()V
    .locals 1

    .prologue
    .line 553
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mDownloaderClientStub:Lcom/google/android/vending/expansion/downloader/IStub;

    if-eqz v0, :cond_0

    .line 554
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mDownloaderClientStub:Lcom/google/android/vending/expansion/downloader/IStub;

    invoke-interface {v0, p0}, Lcom/google/android/vending/expansion/downloader/IStub;->connect(Landroid/content/Context;)V

    .line 556
    :cond_0
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 557
    return-void
.end method

.method protected onStop()V
    .locals 1

    .prologue
    .line 564
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mDownloaderClientStub:Lcom/google/android/vending/expansion/downloader/IStub;

    if-eqz v0, :cond_0

    .line 565
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity;->mDownloaderClientStub:Lcom/google/android/vending/expansion/downloader/IStub;

    invoke-interface {v0, p0}, Lcom/google/android/vending/expansion/downloader/IStub;->disconnect(Landroid/content/Context;)V

    .line 567
    :cond_0
    invoke-super {p0}, Landroid/app/Activity;->onStop()V

    .line 568
    return-void
.end method

.method validateXAPKZipFiles()V
    .locals 4

    .prologue
    .line 168
    new-instance v0, Lcom/melesta/obb/ObbDownloaderActivity$1;

    invoke-direct {v0, p0}, Lcom/melesta/obb/ObbDownloaderActivity$1;-><init>(Lcom/melesta/obb/ObbDownloaderActivity;)V

    .line 322
    .local v0, validationTask:Landroid/os/AsyncTask;,"Landroid/os/AsyncTask<Ljava/lang/Object;Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;Ljava/lang/Boolean;>;"
    const/4 v1, 0x1

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    new-instance v3, Ljava/lang/Object;

    invoke-direct {v3}, Ljava/lang/Object;-><init>()V

    aput-object v3, v1, v2

    invoke-virtual {v0, v1}, Landroid/os/AsyncTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 323
    return-void
.end method
